package main

import (
	"fmt"
)

func main() {
	nums := []int{-3, 4, 3, 90}
	res := searchRange(nums, 7)
	fmt.Println(res)
}

// 二分查找　索引偏移
func searchRange(nums []int, target int) []int {
	arrLen := len(nums)
	midIndex := arrLen / 2
	if nums[midIndex] > target {

	}

	if nums[midIndex] == target {

	}
	return []int{-1, -1}
}
